package net.zjitc.service;

import net.zjitc.common.ResponseResult;
import net.zjitc.entity.Category;
import net.zjitc.exception.CategoryException;

/**
 * @Author 毛钰深
 * @Create 2022/1/4 13:15
 */
public interface CategoryService {
    ResponseResult getCategories(Integer type) throws CategoryException;

    ResponseResult getPageCategories(Integer type, Integer pagenum, Integer pagesize) throws CategoryException;

    ResponseResult addCategory(Category cate) throws CategoryException;

    ResponseResult selectById(Integer id);

    ResponseResult updateCategory(Integer id, Category category);

    ResponseResult deleteCategory(Integer id);
}
